#include "../func.h"

int main()
{
    pid_t pid;
    pid = fork();
    if (0 == pid)
    {
        printf("Child pid = %d, ppid = %d\n", getpid(), getppid());
        return 0;
    }
    else
    {
        printf("Parent childid = %d, pid = %d\n", pid, getpid());
        sleep(3);
        return 0;
    }
    return 0;
}
